
import request from '@/plugins/request';

/**
 * @description 获取案例配置
 */
export function getCasesConfig() {
    return request({
        url: `/marketing/cases/get_cases_config`,
        method: 'get'
    })
  };

//列表
export function get_cases_list(data) {
    return request({
        url: '/marketing/cases/get_cases_list',
        method: 'get',
        params: data
    })
}

 //案例详情
export function getCasesDetail(id) {
    return request({
        url: '/marketing/cases/get_cases_detail/'+id,
        method: 'get'
    })
}


 //案例修改
export function casesSave (id,data) {
    return request({
        url: '/marketing/cases/cases_save/'+id,
        method: 'post',
        data
    });
}

 //案例新增
 export function casesCreate (data) {
    return request({
        url: '/marketing/cases/cases_create',
        method: 'post',
        data
    });
}


/**
 * @description -修改显示隐藏
 * @param {Number} param id {Number} 会员等级id
 */
 export function setShowApi(data) {
    return request({
        url: `/marketing/cases/set_show/${data.id}/${data.is_show}`,
        method: 'get'
    });
}










  